home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / spiele / diamondcaves / game2.1 / installgame next >
Text File  |  1995-07-15  |  13KB  |  420 lines

  1. ; $VER DC-Install 2.1 (16.07.95)
  2.  
  3. (set DrawerNameParent @default-dest)
  4. (set Update 0)
  5. (set version 0)
  6.  
  7. (run "describe/sync SCRIPT=INSTALL.BAT") ; describe is (C) Dietmar Eilert
  8.  
  9. (complete 0)
  10. (if (exists "DC:" (NOREQ))
  11.     (
  12.  
  13.         (set vernum (getversion "DC:DiamondCaves"))
  14.  
  15.         (set ver (/ vernum 65536))
  16.         (set rev (- vernum (* ver 65536)))
  17.  
  18.         (set version (+ (* 100 ver) rev))
  19.  
  20.         (if (> version 200)
  21.             (
  22.                 (message "You have already installed a version greater or equal 2.1!\n")
  23.                 (exit (quiet))
  24.             )
  25.             (
  26.                 (set DrawerNameParent "DC:")
  27.                 (set DrawerName "DC:")
  28.             )
  29.         )
  30.  
  31.         (set Update
  32.             (askchoice
  33.                 (prompt "Diamond Caves V" ver "." rev " already installed.\nDo you want to update or install completely new?")
  34.                 (choices "Install new" "Update")
  35.                 (help "Soory, no help-file.")
  36.                 (default 1)
  37.             )
  38.         )
  39.     )
  40. )
  41.  
  42. (if (= Update 1)                  ; only Update according to present Version
  43.     (
  44.         (if (< version 103)         ; this is only for V1.0/1.1/1.2 (two fixed game levels)
  45.             (
  46.                 (complete 30)
  47.                 (copyfiles
  48.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  49.                     (help @copyfiles-help)
  50.                     (source "UpdateFromV1.0-1.2")
  51.                     (dest DrawerName)
  52.                     (all)
  53.                 )
  54.             )
  55.         )
  56.  
  57.         (if (< version 104)         ; this is the update for V1.0-1.3 (ten new easy levels, one game level)
  58.             (
  59.                 (complete 40)
  60.                 (copyfiles
  61.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  62.                     (help @copyfiles-help)
  63.                     (source "UpdateFromV1.0-1.3")
  64.                     (dest DrawerName)
  65.                     (all)
  66.                 )
  67.             )
  68.         )
  69.  
  70.  
  71.         (if (exists "DC:gfx/x999" (NOREQ))
  72.             (
  73.                 (complete 50)
  74.                 (delete
  75.                         ("DC:gfx/x999")
  76.                         (prompt "Deleting old gfx-file.")
  77.                         (help @deletefile-help)
  78.                 )
  79.             )
  80.         )
  81.  
  82.         (if (< version 106)         ; this is the update for V1.0-1.5 (new gfx-format)
  83.             (
  84.                 (complete 60)
  85.                 (copyfiles
  86.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  87.                     (help @copyfiles-help)
  88.                     (source "UpdateFromV1.0-1.5")
  89.                     (dest DrawerName)
  90.                     (all)
  91.                 )
  92.             )
  93.         )
  94.  
  95.         (if (< version 107)         ; this is the update for V1.0-1.6 (all replay-files and new sfx-format)
  96.             (
  97.                 (complete 70)
  98.                 (copyfiles
  99.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  100.                     (help @copyfiles-help)
  101.                     (source "UpdateFromV1.0-1.6")
  102.                     (dest DrawerName)
  103.                     (all)
  104.                 )
  105.             )
  106.         )
  107.  
  108.         (if (< version 108)         ; this is the update for V1.0-1.7 (2 replay-files)
  109.             (
  110.                 (complete 80)
  111.                 (copyfiles
  112.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  113.                     (help @copyfiles-help)
  114.                     (source "UpdateFromV1.0-1.7")
  115.                     (dest DrawerName)
  116.                     (all)
  117.                 )
  118.             )
  119.         )
  120.  
  121.         (if (< version 200)         ; this is the update for V1.0-1.8 (sample y27)
  122.             (
  123.                 (complete 90)
  124.                 (copyfiles
  125.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  126.                     (help @copyfiles-help)
  127.                     (source "UpdateFromV1.0-1.8")
  128.                     (dest DrawerName)
  129.                     (all)
  130.                 )
  131.             )
  132.         )
  133.  
  134.         (if (< version 201)         ; this is the update for V1.0-2.0 (new gfx, prg, guide)
  135.             (
  136.                 (complete 95)
  137.                 (copyfiles
  138.                     (prompt "Copying necessary files to \"" DrawerName "\".")
  139.                     (help @copyfiles-help)
  140.                     (source "UpdateFromV1.0-2.0")
  141.                     (dest DrawerName)
  142.                     (all)
  143.                 )
  144.             )
  145.         )
  146.  
  147.  
  148.  
  149.     )
  150.  
  151.     (                             ; new install: copy everything to "DrawerName"
  152.         (complete 0)
  153.         (set DrawerNameParent
  154.              (askdir
  155.                  (prompt "In which drawer should Diamond Caves V2.1 be installed?\n(A directory called Diamond Caves will be created)")
  156.                  (help @askdir-help)
  157.                  (default DrawerNameParent)
  158.              )
  159.         )
  160.  
  161.         (set DrawerName (tackon DrawerNameParent "DiamondCaves"))
  162.  
  163.         (complete 5)
  164.         (makedir DrawerName
  165.             (prompt "I will now create the directory \"" DrawerName "\".")
  166.             (help @makedir-help)
  167.             (infos)
  168.             (confirm)
  169.         )
  170.  
  171.         (complete 10)
  172.         (set icons
  173.             (askchoice
  174.                 (prompt "What kind of Icons do you want?\n")
  175.                 (choices "normal" "MagicWB" "none")
  176.                 (help "Sorry, no help-file.")
  177.                 (default 0)
  178.             )
  179.         )
  180.  
  181.         (if (= icons 0)
  182.             (
  183.                 (copyfiles
  184.                     (prompt "Copying necessary Icons to \"" DrawerName "\".")
  185.                     (help @copyfiles-help)
  186.                     (source "Icons/normal")
  187.                     (dest DrawerName)
  188.                     (all)
  189.                     (infos)
  190.                 )
  191.             )
  192.         )
  193.         (if (= icons 1)
  194.             (
  195.                 (copyfiles
  196.                     (prompt "Copying necessary Icons to \"" DrawerName "\".")
  197.                     (help @copyfiles-help)
  198.                     (source "Icons/MagicWB")
  199.                     (dest DrawerName)
  200.                     (all)
  201.                     (infos)
  202.                 )
  203.             )
  204.         )
  205.  
  206.  
  207.         (complete 20)
  208.         (copyfiles
  209.             (prompt "Copying necessary files to \"" DrawerName "\".")
  210.             (help @copyfiles-help)
  211.             (source "new")
  212.             (dest DrawerName)
  213.             (all)
  214.             (infos)
  215.         )
  216.  
  217.         (complete 25)
  218.         (copyfiles
  219.             (prompt "Copying necessary files to \"" DrawerName "\".")
  220.             (help @copyfiles-help)
  221.             (source "UpdateFromV1.0-1.2")
  222.             (dest DrawerName)
  223.             (all)
  224.         )
  225.  
  226.         (complete 30)
  227.         (copyfiles
  228.             (prompt "Copying necessary files to \"" DrawerName "\".")
  229.             (help @copyfiles-help)
  230.             (source "UpdateFromV1.0-1.3")
  231.             (dest DrawerName)
  232.             (all)
  233.         )
  234.  
  235.         (complete 35)
  236.         (copyfiles
  237.             (prompt "Copying necessary files to \"" DrawerName "\".")
  238.             (help @copyfiles-help)
  239.             (source "UpdateFromV1.0-1.5")
  240.             (dest DrawerName)
  241.             (all)
  242.         )
  243.  
  244.         (complete 40)
  245.         (copyfiles
  246.             (prompt "Copying necessary files to \"" DrawerName "\".")
  247.             (help @copyfiles-help)
  248.             (source "UpdateFromV1.0-1.6")
  249.             (dest DrawerName)
  250.             (all)
  251.         )
  252.  
  253.         (complete 45)
  254.         (copyfiles
  255.             (prompt "Copying necessary files to \"" DrawerName "\".")
  256.             (help @copyfiles-help)
  257.             (source "UpdateFromV1.0-1.7")
  258.             (dest DrawerName)
  259.             (all)
  260.         )
  261.  
  262.         (complete 50)
  263.         (copyfiles
  264.             (prompt "Copying necessary files to \"" DrawerName "\".")
  265.             (help @copyfiles-help)
  266.             (source "UpdateFromV1.0-1.8")
  267.             (dest DrawerName)
  268.             (all)
  269.         )
  270.  
  271.         (complete 55)
  272.         (copyfiles
  273.             (prompt "Copying necessary files to \"" DrawerName "\".")
  274.             (help @copyfiles-help)
  275.             (source "UpdateFromV1.0-2.0")
  276.             (dest DrawerName)
  277.             (all)
  278.         )
  279.  
  280.         (complete 70)
  281.         (startup "Diamond Caves"
  282.             (prompt "An assign to \"DC:\" will be added to \"S:user-startup\" so that your system will be properly configured to use Diamond Caves.")
  283.             (help "Sorry, no help-file.")
  284.             (command "assign DC: \"" DrawerName "\"")
  285.         )
  286.         (makeassign "DC")
  287.         (makeassign "DC" DrawerName)
  288.  
  289.  
  290.         (complete 75)
  291.         (if ((database "vblank") 50)
  292.             (set DefaultMode 0)
  293.             (set DefaultMode 2)
  294.         )
  295.         (set ScreenModeNum
  296.             (askchoice
  297.                 (prompt "Which screenmode do you want the title screen of Diamond Caves to use?\n(Note that the title was designed to be used on an interlaced screenmode)")
  298.                 (choices "PAL:HighRes" "PAL:HighRes Interlace" "NTSC:HighRes" "NTSC:HighRes Interlace")
  299.                 (help "To play Diamond Caves with other Screenmodes, use the program DiamondPrefs.")
  300.                 (default DefaultMode)
  301.             )
  302.         )
  303.         (if (= ScreenModeNum 0)
  304.             (set ScreenMode "PAL")
  305.         )
  306.         (if (= ScreenModeNum 1)
  307.             (set ScreenMode "PAL-LACE")
  308.         )
  309.         (if (= ScreenModeNum 2)
  310.             (set ScreenMode "NTSC")
  311.         )
  312.         (if (= ScreenModeNum 3)
  313.             (set ScreenMode "NTSC-LACE")
  314.         )
  315.         (tooltype 
  316.             (prompt "I will now change the tooltype TITLEMODE to " ScreenMode ".")
  317.             (help "Soory, no help-file.")
  318.             (dest "DC:DiamondCaves")
  319.             (settooltype "TITLEMODE" ScreenMode)
  320.             (confirm)
  321.         )
  322.  
  323.  
  324.         (complete 80)
  325.         (set ScreenModeNum
  326.             (askchoice
  327.                 (prompt "Which screenmode do you want the game to use?\n(Note that you should only use interlace if you have a 17\" monitor)")
  328.                 (choices "PAL:LowRes" "PAL:HighRes Interlace" "NTSC:LowRes" "NTSC:HighRes Interlace")
  329.                 (help "To play Diamond Caves with other Screenmodes, use the program DiamondPrefs.")
  330.                 (default DefaultMode)
  331.             )
  332.         )
  333.         (if (= ScreenModeNum 0)
  334.             (set ScreenMode "PAL")
  335.         )
  336.         (if (= ScreenModeNum 1)
  337.             (set ScreenMode "PAL-LACE")
  338.         )
  339.         (if (= ScreenModeNum 2)
  340.             (set ScreenMode "NTSC")
  341.         )
  342.         (if (= ScreenModeNum 3)
  343.             (set ScreenMode "NTSC-LACE")
  344.         )
  345.         (tooltype 
  346.             (prompt "I will now change the tooltype GAMEMODE to " ScreenMode ".")
  347.             (help "Soory, no help-file.")
  348.             (dest "DC:DiamondCaves")
  349.             (settooltype "GAMEMODE" ScreenMode)
  350.             (confirm)
  351.         )
  352.  
  353.  
  354.         (complete 85)
  355.         (set ControlNum
  356.             (askchoice
  357.                 (prompt "Which controlling device do you want Player 1 to use?\n")
  358.                 (choices "Joystick Port 1" "Joystick Port 2" "Keyboard")
  359.                 (help "Soory, no help-file.")
  360.                 (default 1)
  361.             )
  362.         )
  363.         (if (= ControlNum 0)
  364.             (set ControlMode "JOY1")
  365.         )
  366.         (if (= ControlNum 1)
  367.             (set ControlMode "JOY2")
  368.         )
  369.         (if (= ControlNum 2)
  370.             (set ControlMode "KEYS")
  371.         )
  372.         (tooltype 
  373.             (prompt "I will now change the tooltype PLAYER1 to " ControlMode ".")
  374.             (help "Soory, no help-file.")
  375.             (dest "DC:DiamondCaves")
  376.             (settooltype "PLAYER1" ControlMode)
  377.             (confirm)
  378.         )
  379.  
  380.  
  381.         (complete 90)
  382.         (set ControlNum
  383.             (askchoice
  384.                 (prompt "Which controlling device do you want Player 2 to use?\n")
  385.                 (choices "Joystick Port 1" "Joystick Port 2" "Keyboard")
  386.                 (help "Soory, no help-file.")
  387.                 (default 0)
  388.             )
  389.         )
  390.         (if (= ControlNum 0)
  391.             (set ControlMode "JOY1")
  392.         )
  393.         (if (= ControlNum 1)
  394.             (set ControlMode "JOY2")
  395.         )
  396.         (if (= ControlNum 2)
  397.             (set ControlMode "KEYS")
  398.         )
  399.         (tooltype 
  400.             (prompt "I will now change the tooltype PLAYER2 to " ControlMode ".")
  401.             (help "Sorry, no help-file.")
  402.             (dest "DC:DiamondCaves")
  403.             (settooltype "PLAYER2" ControlMode)
  404.             (confirm)
  405.         )
  406.  
  407.         (tooltype
  408.             (prompt "setting gameport.device")
  409.             (help "Soory, no help-file.")
  410.             (dest "DC:DiamondCaves")
  411.             (settooltype "GAMEPORTDEVICE" "OFF")
  412.         )
  413.     )
  414. )
  415.  
  416. (complete 100)
  417. (message "\nDiamond Caves installation/update complete, please make sure to read at least the first chapter of the doc-file.\n\nIf you want to reconfigure Diamond Caves, please use the program DiamondPrefs V1.3.\n\nAnd now enjoy Diamond Caves V2.1!")
  418.  
  419. (exit (quiet))
  420.